/**
 * 
 */
package org.cuatrovientos.ImperialFleet;

import junit.framework.TestCase;

/**
 * Class to make test of the Fleet class
 * 
 * AMBOS DAN ERROR PERO NO ENTIENDO POR QUE, PARECE QUE ES AL CREAR LA FLOTA...
 * IGUAL ES PORQUE MI VERSION DE JAVA NO ME DEJABA CREAR LA CLASE FLEET COMO UN VECTOR (ME PEDIA CAMBIAR JRE A VERSION 5)...
 * AUN ASI NO ENTIENDO POR QUE NO FUNCIONA, CREO QUE LA IDEA ESTA BIEN
 * 
 * @author JESUS
 *
 */
public class FleetTest extends TestCase {

	/**
	 * 
	 * Test method for {@link org.cuatrovientos.ImperialFleet.Fleet#createFleet()}.
	 */
	public void testCreateFleet() {
		Fleet testFleet = new Fleet();
		assertEquals("There are no ships",testFleet.imperialFleet.size(),0);
	}

	/**
	 * Test method for {@link org.cuatrovientos.ImperialFleet.Fleet#showFleet()}.
	 */
	public void testShowFleet() {
		Fleet testFleet = new Fleet();
		for (int i = 0; i<5;i++){
		testFleet.imperialFleet.addElement(new SpaceShip (1));
		}
		assertEquals("Number of ships in the fleet",testFleet.imperialFleet.size(),5);
	}

}
